<?php
@session_start();
@set_time_limit(0);
error_reporting(E_ALL& ~E_NOTICE); //E_ALL& ~E_NOTICE
header("Content-Type:text/html;charset=utf-8");

define('SEJUJOPEFDNGJSL',true);
//define('SITEROOT',str_replace('\\', '/', '/phpstudy/www/pbc.huiz.net.cn/'));
define('SITEROOT',str_replace('\\', '/', substr(__FILE__,0,strripos(dirname(__FILE__),'\\'))));

define('UCENTERCOMP', SITEROOT.'../ucenter/index/');
define('UCENTERDATA', SITEROOT.'../ucenter/data/');

require(SITEROOT.'../include/common.fun.php');

if(empty($_SESSION['houid'])||$_SESSION['houid']<1){
	header("Location:index.php?u=1");
}

getsessiontime();

require(SITEROOT.'../include/data.php');
require(SITEROOT.'../include/database.php');
require(SITEROOT.'../include/common.db.php');
require(SITEROOT.'../include/mysql.php');
require(SITEROOT.'../include/member.php');
require(SITEROOT.'../include/config.php');
require(SITEROOT.'../include/computing.php');
require(SITEROOT.'../include/CoinClient.class.php');

//require(SITEROOT.'/include/GoogleAuthenticator.class.php');
require(SITEROOT.'../debug.php');

define('UCENTERDATAURL', YUMING.'ucenter/data/');
define('YMCURL', UCENTERINDEX.'?lsaction=');
require('adminfun.php');
require('temp.php');

$GLOBALARR['pagecount']=13;

$_houid=$_SESSION['houid'];
$_username=$_SESSION['houname'];
$db=new mysql(array($GLOBALARR['dbhost'],$GLOBALARR['dbname'],$GLOBALARR['dbuser'],$GLOBALARR['dbpwd'],$GLOBALARR['debug']));
$member=new member();
$config=new config();
$r=$member->getua($_username);
$GLOBALARR['adminmenu1']=$r['privilege_cn'];
$GLOBALARR['adminmenu2']=$r['privilege_en'];

if($r['status']) msg_l('您没权限访问','index.php?u=1');
if($r['status']) msg_l('您没权限访问','index.php?u=1');

getconfig();

if($GLOBALARR["syopen"]&&$_houid!=8501&&$_SERVER['HTTP_HOST']!=$GLOBALARR['syopens']){
	header("Location:index.php?u=1");
}
//发币
$dj_username = 'abc';
$dj_password = '123';
$dj_address = '47.88.175.40';
$dj_port = '2757';
$CoinClient = new CoinClient($dj_username, $dj_password, $dj_address, $dj_port, 5, array(), 1);

$dj_username_btc = 'abc';
$dj_password_btc = '123';
$dj_address_btc = '47.88.175.40';
$dj_port_btc = '8332';

$CoinClient_btc = new CoinClient($dj_username_btc, $dj_password_btc, $dj_address_btc, $dj_port_btc, 5, array(), 1);
$dj_username_ltc = 'abc';
$dj_password_ltc = '123';
$dj_address_ltc = '47.74.191.51';
$dj_port_ltc = '9332';
$CoinClient_ltc = new CoinClient($dj_username_ltc, $dj_password_ltc, $dj_address_ltc, $dj_port_ltc, 5, array(), 1);
//die(UCENTERCOMP.'menu.php');
require(UCENTERCOMP.'menu.php');

?>
